
import 'package:erp/UI/Components/HeroLogo.dart';
import 'package:erp/UI/Components/CustomizedScaffold.dart';
import 'package:flutter/material.dart';

class LogoScaffold extends StatelessWidget {

  String assetsLogoName;
  String heroName;
  String title;
  SliverChildListDelegate contentDelegate;
  Widget floatingActionButton;
  bool pinned;
  bool useSearchBar;
  Widget drawer;
  Widget endDrawer;
  Color backgroundColor;
  void Function(String text) searchHandler;

  LogoScaffold({
    this.assetsLogoName,
    this.heroName,
    this.title,
    this.contentDelegate,
    this.floatingActionButton,
    this.pinned = true,
    this.useSearchBar = false,
    this.drawer, this.endDrawer,
    this.searchHandler,
    this.backgroundColor
  });

  @override
  Widget build(BuildContext context) {
    return CustomizedScaffold(
      title: title,
      appbarContent: HeroLogo(
        heroName: heroName,
        assetsLogoName: assetsLogoName,
      ),
      contentDelegate: contentDelegate,
      floatingActionButton: floatingActionButton,
      pinned: pinned,
      useSearchBar: useSearchBar,
      drawer: drawer,
      endDrawer: endDrawer,
      searchHandler: searchHandler,
      backgroundColor: backgroundColor,
    );
  }
}
